package com.ylkj.common.page;

import java.util.Iterator;
import java.util.List;

public interface Page extends Iterable<Object> {
	public abstract int getNumber();

	public abstract int getSize();

	public abstract int getTotalPages();

	public abstract int getNumberOfElements();

	public abstract long getTotalElements();

	public abstract boolean hasPreviousPage();

	public abstract boolean isFirstPage();

	public abstract boolean hasNextPage();

	public abstract boolean isLastPage();

	public abstract Pageable nextPageable();

	public abstract Pageable previousPageable();

	public abstract Pageable getPageable();

	public abstract Iterator<Object> iterator();

	public abstract List<Object> getContent();

	public abstract boolean hasContent();
}
